#include <io.h>

#include "timing.h"

void waitms(int time) {
  BCSCTL1=0x00; //Sets ACLK=LFXT1CLK
  TACCR0=time*4; //assumes one run of clock=0.25ms
  TACTL=0x01D2; //Resets timer, sources from ACLK/8, and sets to count up to TACCR0
  while (!(TACTL & 1));
}


